nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound
TechnologiesCoding ProblemsBookmarksLearning Paths
nextRound

AI-powered interview preparation platform. Practice with curated questions, mock interviews, and personalized learning paths to crack your dream tech interview.

Quick Links

  • Technologies
  • Saved Questions
  • Pricing

Company

  • About Us
  • Contact Us

Legal

  • Privacy Policy
  • Terms of Use

© 2026 nextRound. All rights reserved.

TOPIC OVERVIEW

HTML/HTML5 APIs

Browser APIs that extend HTML: storage, geolocation, drag and drop, workers and more.

12 QuestionsIntermediateHigh Priority ~12 min read

Alongside new elements, HTML5 introduced a family of JavaScript APIs that let pages do much more. Web Storage (localStorage and sessionStorage) keeps key-value data in the browser, the Geolocation API provides the user's position with permission, the Drag and Drop API makes elements draggable, and the Canvas API draws graphics. Web Workers run scripts on background threads, the History API enables navigation without full page loads, and the Fetch, Intersection Observer and Notification APIs are widely used in modern apps.

A popular interview question compares localStorage, sessionStorage and cookies: localStorage persists until cleared, sessionStorage lasts for the tab session, and cookies are sent with every HTTP request and have much smaller limits. Storage is synchronous and only holds strings, and it is accessible to any script on the page, so it shouldn't hold sensitive data like tokens that need protection from XSS. Knowing the trade-offs of each API matters more than listing them.

What you'll walk away knowing

The purpose of major APIs: Web Storage, Geolocation, Drag and Drop, Canvas and Web Workers
Differences between localStorage, sessionStorage and cookies
How the History API supports single-page navigation
Security and privacy considerations such as permissions and sensitive data in storage

No questions match "".

All Topics
1
Basics
Common Tags
Attributes and Elements
Lists
Text tags and Formatting
2
Input and Forms
Block and Inline Elements
Box model
3
Semantic Tags
Links and Images
Media and Embeds
Tables
HTML entities
HTML and CSS
4
Performance
SEO
Progressive Enhancement
5
HTML5
Custom Elements & Web Components
HTML5 APIs
SPAs
6
WCAG
Security
Best Practices
Sharethis topic

Share via WhatsApp, X, Facebook, LinkedIn or copy link. Open Graph preview enabled.